<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 16/9/6
 * Time: 下午8:41
 */

namespace Home\Controller;


use Think\Controller;

class PagesController extends BaseController
{

   // 招生简章
    public function rulers()
    {
        $info = M('single_page')->where(array('cate_id' => 45))->find();
        if($info['content']) $info['content'] = stripslashes(htmlspecialchars_decode($info['content']));
        $this->assign('info', $info);
        $this->display();
    }

    //联系我们
    public function contact()
    {
        $info = M('single_page')->where(array('cate_id' => 46))->find();
        if($info['content']) $info['content'] = stripslashes(htmlspecialchars_decode($info['content']));
        $this->assign('info', $info);
        $this->display();
    }

}